package com.example.demo.JavaBasics;

/**
 * @auther hewenhui
 * @see <a href="hetp://www.codingmaster.com> java </a>
 */
public class Box<T> {
    private T t;

    public void set(T t) {
        this.t = t;
    }

    public T get() {
        return t;
    }

    public static void main(String[] args) {
        Box<Integer> intBox = new Box<>();
        intBox.set(123);
        Integer num = intBox.get();
    }
}
